#ifndef _MP3_h_
#define _MP3_h_
#include  "zf_common_headfile.h"
#include  "stdlib.h"
typedef enum
{
  UART_USAGE=0,
  GPIO_USAGE,
}MP3_USAGE;

#define BUSY_PIN (P13_0)
#define IO_1     (P08_1)
#define IO_2     (P08_2)
#define IO_3     (P05_2)
#define IO_4     (P05_3)
#define IO_5     (P05_4)
#define MP3_UART (UART_3)
#define MP3_TX   (UART3_TX_P17_2)
#define MP3_RX   (UART3_RX_P17_1)

void MP3_Init(MP3_USAGE USAGE);
uint8 MP3_GPIO_play(gpio_pin_enum pin,uint8 interrupt_flag);
uint8 MP3_VOLUME_SET(uint8 volume);
uint8 MP3_UART_PLAY(uint8 section,uint8 interrupt_flag);
uint8 random_play(uint8 min,uint8 max,uint8 interrupt_flag);
void MP3_TEST(void);
#endif